package com.demo.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface SeataMapper  {
   @Select("select * from  distributed_lock")
    List<Map<String,Object>> getlist();
   @Insert("INSERT INTO `seata`.`account_tbl`(`user_id`, `money`) VALUES ('2', 200)")
    boolean insert_account();
}
